package rhc.taskSchedule.command.impl;

import rhc.discribute.node.host.Host;
import rhc.discribute.node.sendMessage.SendMessageCallback;

public class SendMsgCallback implements SendMessageCallback{

	/**
	 * 发送是否成功
	 */
	private boolean sendSuccess=false;
	
	public SendMsgCallback(){}
	
	@Override
	public void receiveFail(Host arg0, Host arg1, String arg2) {
		sendSuccess=false;
	}

	@Override
	public void receiveSuccess(Host arg0, Host arg1, String arg2) {
		sendSuccess=true;
	}

	@Override
	public void send(Host arg0, Host arg1, String arg2) {
		// TODO Auto-generated method stub
		
	}

	/**获取发送是否成功
	 * @return
	 */
	public boolean sendSuccess(){
		return sendSuccess;
	}
}
